package com.service.testclasses;

import com.kikidao.app.testclasses.useraccounts.User;
import com.service.annotation.ConnectionDependent;
import com.service.annotation.Transactional;
import com.service.exceptions.BusinessServiceCheckedException;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/30/12
 * Time: 2:51 PM
 */
@SuppressWarnings("UnusedDeclaration")
@ConnectionDependent
public interface RegisterBS {
    public String signUp(User newUser) throws BusinessServiceCheckedException;

    public String logIn(User loginUser) throws BusinessServiceCheckedException;

    public User getUserInfo(Integer id) throws BusinessServiceCheckedException;

    public List<User> listUsers() throws BusinessServiceCheckedException;

    @Transactional
    public void incrementAllAges() throws BusinessServiceCheckedException;

    public void clearAllUsers() throws BusinessServiceCheckedException;

    public void replaceUser(User first, User last) throws BusinessServiceCheckedException;
}
